﻿<ubcr:RibbonWindow x:Class="UBCon.RibbonDemo.Views.ShellView"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:shell="clr-namespace:Microsoft.Windows.Shell;assembly=Microsoft.Windows.Shell"
                   xmlns:skin="clr-namespace:UBCon.Ribbon.SkinManagers;assembly=UBCon.Ribbon"
                   xmlns:ubcn="http://schemas.ultimatebusinesscontrols.com/wpf/xaml/navigation"
                   xmlns:ubcr="http://schemas.ultimatebusinesscontrols.com/wpf/xaml/ribbon"
                   xmlns:viewModels="clr-namespace:UBCon.RibbonDemo.ViewModels"
                   x:Name="shell"
                   Title="Ribbon Demo Application"
                   Icon="pack://application:,,,/UBCon.RibbonDemo;component/images/word2013-icon.png"
                   WindowStartupLocation="CenterScreen">

    <ubcr:RibbonWindow.Resources>
        <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FFF" />
        <SolidColorBrush x:Key="SolidBorderBrush" Color="#888" />
        <BooleanToVisibilityConverter x:Key="converter" />
        <DataTemplate x:Key="itemTemplate">
            <Image Width="17"
                   Height="17"
                   Margin="1"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Source="{Binding Image}" />
        </DataTemplate>
        <DataTemplate x:Key="galleryItemTemplate" x:Shared="False">
            <Image Width="{Binding Path=ImageWidth,
                                   Mode=TwoWay,
                                   NotifyOnSourceUpdated=True}"
                   Height="{Binding Path=ImageHeight,
                                    Mode=TwoWay,
                                    NotifyOnSourceUpdated=True}"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Source="{Binding Image}"
                   Stretch="Fill" />
        </DataTemplate>
        <viewModels:ShellViewModel x:Key="viewModel" />
        <Style x:Key="optionMenuItemStyle" TargetType="{x:Type ubcr:RibbonGalleryItem}">
            <Setter Property="MaxWidth" Value="300" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ubcr:RibbonGalleryItem}">
                        <ubcr:RibbonChrome x:Name="chrome"
                                           Background="{TemplateBinding Background}"
                                           BorderBrush="{TemplateBinding BorderBrush}"
                                           CornerRadius="0"
                                           InnerBorderCornerRadius="0"
                                           RenderMouseOver="{TemplateBinding IsMouseOver}"
                                           RenderPressed="{TemplateBinding IsSelected}">
                            <ContentPresenter ContentSource="Content"
                                              ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                              ContentTemplate="{TemplateBinding ContentTemplate}"
                                              ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
                        </ubcr:RibbonChrome>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <DataTemplate x:Key="optionMenuItemTemplate">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Image Grid.RowSpan="2"
                       Width="32"
                       Height="32"
                       Source="{Binding Path=ImageSource}" />
                <TextBlock Grid.Column="1"
                           Margin="2"
                           FontWeight="Bold"
                           Text="{Binding Title}"
                           TextWrapping="Wrap" />
                <TextBlock Grid.Row="1"
                           Grid.Column="1"
                           Margin="2"
                           Text="{Binding Path=Description}"
                           TextWrapping="Wrap" />
            </Grid>
        </DataTemplate>
        <DrawingImage x:Key="CommandsCaptionImage" RenderOptions.BitmapScalingMode="Linear">
            <DrawingImage.Drawing>
                <DrawingGroup>
                    <GeometryDrawing Geometry="M0,0 L12,0 L12,10 L0,10z" Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=_Pen1}}" />
                    <GeometryDrawing Geometry="M0,2.5 L12,2.5" Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=_Pen1}}" />
                    <GeometryDrawing Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                               ResourceId=LightBlackBrush}}"
                                     Geometry="M4,5 L6,2.5 L8,5 L6,3.7z"
                                     Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                                             ResourceId=_Pen1}}" />
                    <GeometryDrawing Geometry="M6,2.5 L6,10" Pen="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=_Pen1}}" />
                </DrawingGroup>
            </DrawingImage.Drawing>
        </DrawingImage>
    </ubcr:RibbonWindow.Resources>
    <ubcr:RibbonWindow.QAToolbarItems>
        <ubcr:RibbonButton Height="19"
                           ubcr:RibbonWindow.Text="Cut..."
                           Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/cut.png"
                           Size="Small" />
        <ubcr:RibbonButton Height="19"
                           ubcr:RibbonWindow.Text="Copy..."
                           Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/copy.png"
                           Size="Small" />
        <ubcr:RibbonButton Height="19"
                           ubcr:RibbonWindow.Text="Clear..."
                           Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/formatpainter.png"
                           Size="Small" />
        <ubcr:RibbonSplitButton Height="19"
                                ubcr:RibbonWindow.Text="Clear..."
                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/formatpainter.png"
                                Size="Small" />
        <ubcr:RibbonSplitButton Height="19" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/Underline/underline.png">
            <ubcr:RibbonGallerySet>
                <ubcr:RibbonGallery ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}" ItemsSource="{Binding Path=UnderlineItems, Source={StaticResource ResourceKey=viewModel}}">
                    <ubcr:RibbonGallery.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel />
                        </ItemsPanelTemplate>
                    </ubcr:RibbonGallery.ItemsPanel>
                </ubcr:RibbonGallery>
            </ubcr:RibbonGallerySet>
        </ubcr:RibbonSplitButton>
        <ubcr:RibbonSplitButton Height="19" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/highlight.png" />
        <ubcr:RibbonSplitButton Height="19" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/fontcolor.png" />
        <ComboBox Width="130"
                  Height="19"
                  VerticalAlignment="Center"
                  IsEditable="True"
                  ItemsSource="{Binding Source={x:Static Member=Fonts.SystemFontFamilies}}"
                  SelectedIndex="{Binding Path=SelectedIndex,
                                          ElementName=fontCombo,
                                          Mode=TwoWay}">
            <ComboBox.ItemContainerStyle>
                <Style TargetType="{x:Type ComboBoxItem}">
                    <Setter Property="FontFamily" Value="{Binding Path=DataContext, RelativeSource={RelativeSource Mode=Self}}" />
                    <Setter Property="Height" Value="23" />
                    <Setter Property="VerticalAlignment" Value="Center" />
                </Style>
            </ComboBox.ItemContainerStyle>
        </ComboBox>
        <ubcr:RibbonComboBox Width="130"
                             Height="19"
                             VerticalAlignment="Center"
                             IsEditable="True"
                             ItemsSource="{Binding Source={x:Static Member=Fonts.SystemFontFamilies}}"
                             SelectedIndex="{Binding Path=SelectedIndex,
                                                     ElementName=fontCombo,
                                                     Mode=TwoWay}">
            <ubcr:RibbonComboBox.ItemContainerStyle>
                <Style TargetType="{x:Type ubcr:RibbonComboBoxItem}">
                    <Setter Property="FontFamily" Value="{Binding Path=DataContext, RelativeSource={RelativeSource Mode=Self}}" />
                    <Setter Property="Height" Value="23" />
                    <Setter Property="VerticalAlignment" Value="Center" />
                </Style>
            </ubcr:RibbonComboBox.ItemContainerStyle>
        </ubcr:RibbonComboBox>
        <ubcr:RibbonComboBox Width="40"
                             Height="19"
                             VerticalAlignment="Center"
                             SelectedIndex="{Binding Path=SelectedIndex,
                                                     ElementName=fontSizeCombo,
                                                     Mode=TwoWay}">
            <ubcr:RibbonComboBoxItem Content="8" />
            <ubcr:RibbonComboBoxItem Content="9" />
            <ubcr:RibbonComboBoxItem Content="10" />
            <ubcr:RibbonComboBoxItem Content="12" />
            <ubcr:RibbonComboBoxItem Content="14" />
            <ubcr:RibbonComboBoxItem Content="18" />
            <ubcr:RibbonComboBoxItem Content="20" />
            <ubcr:RibbonComboBoxItem Content="24" />
        </ubcr:RibbonComboBox>
    </ubcr:RibbonWindow.QAToolbarItems>
    <ubcr:RibbonWindow.CaptionItems>
        <ubcr:RibbonDropDownButton x:Name="optionsButton"
                                   Width="28"
                                   Height="25"
                                   ubcr:RibbonHelper.ImageHeight="10"
                                   ubcr:RibbonHelper.ImageWidth="13"
                                   ubcr:RibbonWindow.EnableDefaulStyle="True"
                                   ubcr:RibbonWindow.IsCollapsable="False"
                                   Image="{StaticResource ResourceKey=CommandsCaptionImage}">
            <ubcr:RibbonGallerySet>
                <ubcr:RibbonGallery x:Name="OptionsMenuGallery"
                                    ItemContainerStyle="{StaticResource ResourceKey=optionMenuItemStyle}"
                                    ItemTemplate="{StaticResource optionMenuItemTemplate}"
                                    ItemsSource="{Binding Path=OptionsButtonSource,
                                                          Source={StaticResource ResourceKey=viewModel}}"
                                    ParentMenu="{Binding ElementName=optionsButton}"
                                    SelectedItem="{Binding Path=SelectedOptionItem,
                                                           Source={StaticResource ResourceKey=viewModel},
                                                           Mode=TwoWay}"
                                    StaysOpenOnSelection="False">
                    <ubcr:RibbonGallery.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel />
                        </ItemsPanelTemplate>
                    </ubcr:RibbonGallery.ItemsPanel>
                </ubcr:RibbonGallery>
            </ubcr:RibbonGallerySet>
        </ubcr:RibbonDropDownButton>

    </ubcr:RibbonWindow.CaptionItems>
    <!--<ubcr:RibbonWindow.QAToolbar>
        <ubcr:QAToolbar>

        </ubcr:QAToolbar>
    </ubcr:RibbonWindow.QAToolbar>-->
    <DockPanel LastChildFill="True">
        <ubcr:RibbonBar AnimatedOpen="True"
                        DockPanel.Dock="Top"
                        Mode="{Binding Path=RibbonBarMode,
                                       Source={StaticResource ResourceKey=viewModel},
                                       Mode=TwoWay}"
                        SelectedIndex="0">
            <ubcr:RibbonBar.ApplicationMenu>
                <ubcr:ApplicationMenu x:Name="AppMenu"
                                      Title="FILE"
                                      Image="pack://application:,,,/UBCon.RibbonDemo;component/images/word2007.ico"
                                      SelectedIndex="0">
                    <ubcr:ApplicationMenuItem Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/footer.png" TitleContent="Info">
                        <Grid>
                            <TextBlock HorizontalAlignment="Center"
                                       VerticalAlignment="Center"
                                       FontSize="75"
                                       Foreground="Black"
                                       Text="Information" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/new.png" TitleContent="Create">
                        <Grid>
                            <Button Content="Create" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/open.png" TitleContent="Open">
                        <Grid>
                            <Button Content="Open" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/save.png" TitleContent="Save">
                        <Grid>
                            <Button Content="Save" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem Size="Large" TitleContent="Save as...">
                        <Grid>
                            <Button Content="Save as..." />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem TitleContent="Print">
                        <Grid>
                            <Button Content="Print" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem TitleContent="Public access">
                        <Grid>
                            <Button Content="Public access" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem TitleContent="Export">
                        <Grid>
                            <Button Content="Export" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem IsSelectable="False" TitleContent="Close">
                        <Grid>
                            <Button Content="Close" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                    <ubcr:ApplicationMenuItem TitleContent="Profile">
                        <Grid>
                            <Button Content="Profile" />
                        </Grid>
                    </ubcr:ApplicationMenuItem>
                </ubcr:ApplicationMenu>
            </ubcr:RibbonBar.ApplicationMenu>
            <ubcr:RibbonTabItem x:Name="homeTab" Header="HOME">
                <ubcr:RibbonGroup HasLauncher="True" Header="Clipboard">
                    <ubcr:RibbonButton Title="Paste"
                                       skin:SkinManager.Skin="Office2010"
                                       Click="Button_Click"
                                       Command="{Binding Path=DataContext.OnPasteCommand,
                                                         ElementName=shell,
                                                         Mode=OneWay}"
                                       Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/paste.png"
                                       Size="Large" />
                    <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/cut.png" Size="Small" />
                    <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/copy.png" Size="Small" />
                    <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/formatpainter.png" Size="Small" />
                </ubcr:RibbonGroup>
                <ubcr:RibbonGroup HasLauncher="True"
                                  Header="Font"
                                  Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/text.png">
                    <ubcr:GroupBox>
                        <ubcr:RibbonComboBox x:Name="fontCombo"
                                             Width="130"
                                             skin:SkinManager.Skin="Office2010"
                                             IsEditable="True"
                                             ItemsSource="{Binding Source={x:Static Member=Fonts.SystemFontFamilies}}"
                                             SelectedIndex="0">
                            <ubcr:RibbonComboBox.ItemContainerStyle>
                                <Style TargetType="{x:Type ubcr:RibbonComboBoxItem}">
                                    <Setter Property="FontFamily" Value="{Binding Path=DataContext, RelativeSource={RelativeSource Mode=Self}}" />
                                    <Setter Property="Height" Value="23" />
                                    <Setter Property="VerticalAlignment" Value="Center" />
                                </Style>
                            </ubcr:RibbonComboBox.ItemContainerStyle>
                        </ubcr:RibbonComboBox>
                        <ubcr:RibbonComboBox x:Name="fontSizeCombo"
                                             Width="40"
                                             SelectedIndex="0">
                            <ubcr:RibbonComboBoxItem Content="8" />
                            <ubcr:RibbonComboBoxItem Content="9" />
                            <ubcr:RibbonComboBoxItem Content="10" />
                            <ubcr:RibbonComboBoxItem Content="12" />
                            <ubcr:RibbonComboBoxItem Content="14" />
                            <ubcr:RibbonComboBoxItem Content="18" />
                            <ubcr:RibbonComboBoxItem Content="20" />
                            <ubcr:RibbonComboBoxItem Content="24" />
                        </ubcr:RibbonComboBox>
                        <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/font-increasesize.png" />
                        <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/font-decreasesize.png" />
                        <ubcr:RibbonSeparator />
                        <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/ClearFormatting16.png" />
                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/linecolor.png" />
                    </ubcr:GroupBox>
                    <ubcr:GroupBox>
                        <ubcr:RibbonToggleButton x:Name="bold"
                                                 Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/bold.png"
                                                 IsChecked="{Binding Path=AnimatedOpen,
                                                                     ElementName=AppMenu,
                                                                     Mode=TwoWay}" />
                        <ubcr:RibbonToggleButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/italic.png" IsChecked="{Binding Path=IsChecked, ElementName=bold, Mode=OneWay}" />
                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/Underline/underline.png">
                            <ubcr:RibbonGallerySet>
                                <ubcr:RibbonGallery ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}" ItemsSource="{Binding Path=UnderlineItems, Source={StaticResource ResourceKey=viewModel}}">
                                    <ubcr:RibbonGallery.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel />
                                        </ItemsPanelTemplate>
                                    </ubcr:RibbonGallery.ItemsPanel>
                                </ubcr:RibbonGallery>
                            </ubcr:RibbonGallerySet>
                        </ubcr:RibbonSplitButton>

                        <ubcr:RibbonToggleButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/Strikethrough16.png" />
                        <ubcr:RibbonToggleButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/subscript.png" />
                        <ubcr:RibbonToggleButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/superscript.png" />
                        <ubcr:RibbonSeparator />
                        <ubcr:RibbonDropDownButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/WordArt.png" />

                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/highlight.png" />
                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/fontcolor.png" />
                    </ubcr:GroupBox>
                </ubcr:RibbonGroup>
                <ubcr:RibbonGroup HasLauncher="True"
                                  Header="Paragraph"
                                  Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/aligncenter.png">
                    <ubcr:GroupBox>
                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/list-bullets.png">
                            <ubcr:RibbonGallerySet>
                                <ubcr:RibbonGallery x:Name="test2"
                                                    Header="Bullet library"
                                                    ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                    ItemsSource="{Binding Path=GalleryBullets,
                                                                          Source={StaticResource ResourceKey=viewModel},
                                                                          NotifyOnSourceUpdated=True,
                                                                          Mode=TwoWay}">
                                    <ubcr:RibbonGallery.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <WrapPanel Width="210" />
                                        </ItemsPanelTemplate>
                                    </ubcr:RibbonGallery.ItemsPanel>
                                </ubcr:RibbonGallery>
                            </ubcr:RibbonGallerySet>
                            <ubcr:RibbonSeparator Margin="1" Orientation="Horizontal" />
                            <ubcr:DropDownMenuItem Header="Change List Level" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/synchronizelist.png" />
                            <ubcr:DropDownMenuItem Header="Define New Bullet..." />
                        </ubcr:RibbonSplitButton>
                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/list-numbered.png" UserCanResizeDropDown="True">
                            <ubcr:RibbonGallerySet Height="300" IsFilterEnabled="True">
                                <ubcr:RibbonGallery Header="Numbering Linrary"
                                                    ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                    ItemsSource="{Binding Path=GalleryNumbers,
                                                                          Source={StaticResource ResourceKey=viewModel},
                                                                          NotifyOnSourceUpdated=True,
                                                                          Mode=TwoWay}">
                                    <ubcr:RibbonGallery.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <WrapPanel Width="230" />
                                        </ItemsPanelTemplate>
                                    </ubcr:RibbonGallery.ItemsPanel>
                                </ubcr:RibbonGallery>
                                <ubcr:RibbonGallery Header="Numbering Library 0"
                                                    ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                    ItemsSource="{Binding Path=GalleryNumbers,
                                                                          Source={StaticResource ResourceKey=viewModel},
                                                                          NotifyOnSourceUpdated=True,
                                                                          Mode=TwoWay}">
                                    <ubcr:RibbonGallery.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <WrapPanel Width="230" />
                                        </ItemsPanelTemplate>
                                    </ubcr:RibbonGallery.ItemsPanel>
                                </ubcr:RibbonGallery>
                                <ubcr:RibbonGallery Header="Numbering Library 1"
                                                    ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                    ItemsSource="{Binding Path=GalleryBullets,
                                                                          Source={StaticResource ResourceKey=viewModel},
                                                                          NotifyOnSourceUpdated=True,
                                                                          Mode=TwoWay}">
                                    <ubcr:RibbonGallery.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <WrapPanel Width="230" />
                                        </ItemsPanelTemplate>
                                    </ubcr:RibbonGallery.ItemsPanel>
                                </ubcr:RibbonGallery>
                                <ubcr:RibbonGallery Header="Numbering Library 2"
                                                    ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                    ItemsSource="{Binding Path=GalleryItemsSource,
                                                                          Source={StaticResource ResourceKey=viewModel},
                                                                          NotifyOnSourceUpdated=True,
                                                                          Mode=TwoWay}">
                                    <ubcr:RibbonGallery.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <WrapPanel Width="230" />
                                        </ItemsPanelTemplate>
                                    </ubcr:RibbonGallery.ItemsPanel>
                                </ubcr:RibbonGallery>
                                <ubcr:RibbonGallery Header="Numbering Library 3"
                                                    ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                    ItemsSource="{Binding Path=GalleryBullets,
                                                                          Source={StaticResource ResourceKey=viewModel},
                                                                          NotifyOnSourceUpdated=True,
                                                                          Mode=TwoWay}">
                                    <ubcr:RibbonGallery.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <WrapPanel Width="230" />
                                        </ItemsPanelTemplate>
                                    </ubcr:RibbonGallery.ItemsPanel>
                                </ubcr:RibbonGallery>
                            </ubcr:RibbonGallerySet>
                            <ubcr:RibbonSeparator Orientation="Horizontal" />
                            <ubcr:DropDownMenuItem Header="Change List Level" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/synchronizelist.png">
                                <ubcr:RibbonGallerySet Height="300" IsFilterEnabled="True">
                                    <ubcr:RibbonGallery Header="Numbering Linrary"
                                                        ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                        ItemsSource="{Binding Path=GalleryNumbers,
                                                                              Source={StaticResource ResourceKey=viewModel},
                                                                              NotifyOnSourceUpdated=True,
                                                                              Mode=TwoWay}">
                                        <ubcr:RibbonGallery.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <WrapPanel Width="230" />
                                            </ItemsPanelTemplate>
                                        </ubcr:RibbonGallery.ItemsPanel>
                                    </ubcr:RibbonGallery>
                                    <ubcr:RibbonGallery Header="Numbering Library 0"
                                                        ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                        ItemsSource="{Binding Path=GalleryNumbers,
                                                                              Source={StaticResource ResourceKey=viewModel},
                                                                              NotifyOnSourceUpdated=True,
                                                                              Mode=TwoWay}">
                                        <ubcr:RibbonGallery.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <WrapPanel Width="230" />
                                            </ItemsPanelTemplate>
                                        </ubcr:RibbonGallery.ItemsPanel>
                                    </ubcr:RibbonGallery>
                                    <ubcr:RibbonGallery Header="Numbering Library 1"
                                                        ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                        ItemsSource="{Binding Path=GalleryBullets,
                                                                              Source={StaticResource ResourceKey=viewModel},
                                                                              NotifyOnSourceUpdated=True,
                                                                              Mode=TwoWay}">
                                        <ubcr:RibbonGallery.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <WrapPanel Width="230" />
                                            </ItemsPanelTemplate>
                                        </ubcr:RibbonGallery.ItemsPanel>
                                    </ubcr:RibbonGallery>
                                    <ubcr:RibbonGallery Header="Numbering Library 2"
                                                        ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                        ItemsSource="{Binding Path=GalleryItemsSource,
                                                                              Source={StaticResource ResourceKey=viewModel},
                                                                              NotifyOnSourceUpdated=True,
                                                                              Mode=TwoWay}">
                                        <ubcr:RibbonGallery.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <WrapPanel Width="230" />
                                            </ItemsPanelTemplate>
                                        </ubcr:RibbonGallery.ItemsPanel>
                                    </ubcr:RibbonGallery>
                                    <ubcr:RibbonGallery Header="Numbering Library 3"
                                                        ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                        ItemsSource="{Binding Path=GalleryBullets,
                                                                              Source={StaticResource ResourceKey=viewModel},
                                                                              NotifyOnSourceUpdated=True,
                                                                              Mode=TwoWay}">
                                        <ubcr:RibbonGallery.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <WrapPanel Width="230" />
                                            </ItemsPanelTemplate>
                                        </ubcr:RibbonGallery.ItemsPanel>
                                    </ubcr:RibbonGallery>
                                </ubcr:RibbonGallerySet>
                                <ubcr:DropDownMenuItem Header="Define New Number Format..." Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/strikeout.png">
                                    <ubcr:DropDownMenuItem Header="Define New Number Format..." Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/strikeout.png" />
                                    <ubcr:DropDownMenuItem Header="Define New Number Style..." Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/SignatureLine.png" />
                                </ubcr:DropDownMenuItem>
                                <ubcr:DropDownMenuItem Header="Define New Number Style..." Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/SignatureLine.png" />
                            </ubcr:DropDownMenuItem>
                            <ubcr:DropDownMenuItem Header="Define New Number Format..." Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/strikeout.png" />
                            <ubcr:DropDownMenuItem Header="Define New Number Style..." Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/SignatureLine.png" />
                        </ubcr:RibbonSplitButton>
                        <ubcr:RibbonDropDownButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/list-numbered-tb.png" />
                        <ubcr:RibbonSeparator />
                        <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/indent.png" />
                        <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/outdent.png" />
                        <ubcr:RibbonSeparator />
                        <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/sortasc.png" />
                        <ubcr:RibbonSeparator />
                        <ubcr:RibbonToggleButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/formatting-symbols.png" />
                    </ubcr:GroupBox>
                    <ubcr:GroupBox>
                        <ubcr:RibbonRadioButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/aligncenter.png" />
                        <ubcr:RibbonRadioButton x:Name="justify" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/alignjustify.png" />
                        <ubcr:RibbonRadioButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/alignleft.png" />
                        <ubcr:RibbonRadioButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/alignright.png" />
                        <ubcr:RibbonSeparator />
                        <ubcr:RibbonDropDownButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/expandspace.png" />
                        <ubcr:RibbonSeparator />
                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/fill.png" />
                        <ubcr:RibbonSplitButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/select.png" />
                    </ubcr:GroupBox>
                </ubcr:RibbonGroup>
                <ubcr:RibbonGroup HasLauncher="True"
                                  Header="Styles"
                                  Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/ChangeStyles32.png">
                    <ubcr:RibbonGallery x:Name="galleryItems"
                                        ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                        ItemsSource="{Binding Path=GalleryItemsSource,
                                                              Source={StaticResource ResourceKey=viewModel}}"
                                        SelectedIndex="{Binding Path=SelectedIndex,
                                                                ElementName=gal13,
                                                                Mode=TwoWay}"
                                        VisibleItemsCount="4">
                        <ubcr:RibbonGallery.DropDownGalleries>
                            <ubcr:RibbonGallery x:Name="gal13"
                                                Width="290"
                                                ItemContainerStyle="{DynamicResource ResourceKey={ComponentResourceKey ResourceId=DefaultItemContainerStyle,
                                                                                                                       TypeInTargetAssembly={x:Type ubcr:RibbonGallery}}}"
                                                ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                ItemsSource="{Binding Path=GalleryItemsSource,
                                                                      Source={StaticResource ResourceKey=viewModel}}"
                                                ScrollViewer.VerticalScrollBarVisibility="Auto" />
                        </ubcr:RibbonGallery.DropDownGalleries>
                    </ubcr:RibbonGallery>
                </ubcr:RibbonGroup>
                <ubcr:RibbonGroup Header="Editing" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/find.png">
                    <ubcr:RibbonSplitButton Title="Find" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/find.png" />
                    <ubcr:RibbonButton Title="Replace" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/refresh.png" />
                    <ubcr:RibbonDropDownButton Title="Select" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/pointer.png" />
                </ubcr:RibbonGroup>
            </ubcr:RibbonTabItem>
            <ubcr:RibbonTabItem Header="INSERT">
                <ubcr:RibbonGroup HasLauncher="True"
                                  Header="Clipboard"
                                  Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/copy.png">
                    <ubcr:RibbonGallery Name="agalleryItems"
                                        CanResizeDropDown="True"
                                        ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                        ItemsSource="{Binding Path=GalleryItemsSource,
                                                              Source={StaticResource ResourceKey=viewModel}}"
                                        SelectedIndex="{Binding Path=SelectedIndex,
                                                                ElementName=agalleryItems1,
                                                                Mode=TwoWay}"
                                        VisibleItemsCount="4">
                        <ubcr:RibbonGallery.DropDownGalleries>
                            <ubcr:RibbonGallery x:Name="agalleryItems1"
                                                Width="290"
                                                MinHeight="71"
                                                ItemContainerStyle="{DynamicResource ResourceKey={ComponentResourceKey ResourceId=DefaultItemContainerStyle,
                                                                                                                       TypeInTargetAssembly={x:Type ubcr:RibbonGallery}}}"
                                                ItemTemplate="{StaticResource ResourceKey=galleryItemTemplate}"
                                                ItemsSource="{Binding Path=GalleryItemsSource,
                                                                      Source={StaticResource ResourceKey=viewModel}}"
                                                ScrollViewer.VerticalScrollBarVisibility="Auto" />
                        </ubcr:RibbonGallery.DropDownGalleries>
                    </ubcr:RibbonGallery>
                    <ubcr:RibbonToggleButton x:Name="btn1"
                                             Title="Paste"
                                             Image="pack://application:,,,/UBCon.RibbonDemo;component/images/paste32.png"
                                             Size="Large" />
                    <ubcr:RibbonToggleButton x:Name="btn2"
                                             Image="pack://application:,,,/UBCon.RibbonDemo;component/images/cut32.png"
                                             IsChecked="{Binding IsChecked,
                                                                 ElementName=btn1,
                                                                 Mode=TwoWay}"
                                             Size="Small" />
                    <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/copy.png" Size="Small" />
                    <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Open_16x16.png" Size="Small" />
                </ubcr:RibbonGroup>
                <ubcr:RibbonGroup HasLauncher="True"
                                  Header="DropDownButtons"
                                  Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/copy.png">
                    <ubcr:RibbonDropDownButton Title="Paste"
                                               Command="{Binding Path=DataContext.OnPasteCommand,
                                                                 ElementName=shell,
                                                                 Mode=OneWay}"
                                               Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/paste.png"
                                               Size="Large" />
                    <ubcr:RibbonDropDownButton Title="Cut"
                                               Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/cut.png"
                                               Size="Small" />
                    <ubcr:RibbonDropDownButton Title="Copy"
                                               Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/copy.png"
                                               Size="Small" />
                    <ubcr:RibbonDropDownButton Title="Painter"
                                               Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/formatpainter.png"
                                               Size="Small" />
                </ubcr:RibbonGroup>
            </ubcr:RibbonTabItem>
            <ubcr:RibbonTabItem Header="OutLookBar">
                <ubcr:RibbonGroup HasLauncher="True"
                                  Header="OutlookBar"
                                  Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/ChangeStyles32.png">
                    <ubcr:RibbonToggleButton x:Name="animationsEnabled"
                                             Title="AnimationsEnabled"
                                             Image="pack://application:,,,/UBCon.RibbonDemo;component/images/paste32.png"
                                             Size="Large" />
                    <ubcr:RibbonToggleButton x:Name="deferredDrag"
                                             Title="DeferredDrag"
                                             Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Open_16x16.png"
                                             Size="Large" />
                </ubcr:RibbonGroup>
            </ubcr:RibbonTabItem>
            <ubcr:RibbonTabItem Header="PAGE LAYOUT" />
            <ubcr:RibbonTabItem Header="CONTEXTUAL TAB ITEMS">
                <ubcr:RibbonGroup Header="Contextual tab items">
                    <ubcr:RibbonToggleButton x:Name="btn3"
                                             Title="Paste"
                                             Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/paste.png"
                                             Size="Large" />
                    <ubcr:RibbonToggleButton x:Name="center"
                                             Title="Style"
                                             Image="pack://application:,,,/UBCon.RibbonDemo;component/images/FirstLook/ChangeStyles32.png"
                                             Size="Large" />
                </ubcr:RibbonGroup>
            </ubcr:RibbonTabItem>
            <ubcr:RibbonBar.ContextualItems>

                <ubcr:ContextualTabItemsGroup Title="TABLE TOOLS"
                                              Brush="Orange"
                                              DefaultIndex="0"
                                              Visibility="{Binding Path=IsChecked,
                                                                   ElementName=center,
                                                                   Converter={StaticResource ResourceKey=converter}}">
                    <ubcr:RibbonTabItem Header="DESIGN" IsSelected="True" />
                    <ubcr:RibbonTabItem Header="LAYOUT" />
                </ubcr:ContextualTabItemsGroup>
                <ubcr:ContextualTabItemsGroup Title="TEMPLATE"
                                              Brush="Green"
                                              DefaultIndex="0"
                                              Visibility="{Binding Path=IsChecked,
                                                                   ElementName=btn3,
                                                                   Converter={StaticResource ResourceKey=converter}}">
                    <ubcr:RibbonTabItem Header="HOME" />
                </ubcr:ContextualTabItemsGroup>
                <ubcr:ContextualTabItemsGroup x:Name="t2"
                                              Title="TABLE TOOLS"
                                              Brush="Red"
                                              DefaultIndex="1"
                                              Visibility="{Binding Path=IsChecked,
                                                                   ElementName=center,
                                                                   Converter={StaticResource ResourceKey=converter}}">
                    <ubcr:RibbonTabItem Header="DESIGN">
                        <ubcr:RibbonGroup HasLauncher="True"
                                          Header="Clipboard"
                                          Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MVVM/copy.png">
                            <ubcr:RibbonToggleButton x:Name="btn11"
                                                     Title="Paste"
                                                     Image="pack://application:,,,/UBCon.RibbonDemo;component/images/paste32.png"
                                                     Size="Large" />
                            <ubcr:RibbonToggleButton x:Name="btn22"
                                                     Image="pack://application:,,,/UBCon.RibbonDemo;component/images/cut32.png"
                                                     IsChecked="{Binding IsChecked,
                                                                         ElementName=btn11,
                                                                         Mode=TwoWay}"
                                                     Size="Small" />
                            <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/copy.png" Size="Small" />
                            <ubcr:RibbonButton Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Open_16x16.png" Size="Small" />
                        </ubcr:RibbonGroup>
                    </ubcr:RibbonTabItem>
                    <ubcr:RibbonTabItem Header="LAYOUT" />
                </ubcr:ContextualTabItemsGroup>
            </ubcr:RibbonBar.ContextualItems>
        </ubcr:RibbonBar>
        <ubcn:OutlookBar x:Name="outlookBar"
                         Grid.Row="1"
                         Grid.ColumnSpan="3"
                         AnimationsEnabled="{Binding Path=IsChecked,
                                                     ElementName=animationsEnabled}"
                         IsCompact="True"
                         IsDeferredDrag="{Binding Path=IsChecked,
                                                  ElementName=deferredDrag}"
                         SelectedIndex="0">
            <ubcn:OutlookBar.InnerContent>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                    </Grid.RowDefinitions>

                    <ubcr:GroupBox Grid.Row="1"
                                   Margin="4,0"
                                   Orientation="Vertical">
                        <ubcr:RibbonRadioButton Title="OfficeBlueSkin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/Word-icon.png" />
                        <ubcr:RibbonRadioButton Title="OfficeGreenSkin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/Excel-icon.png" />
                        <ubcr:RibbonRadioButton Title="OfficeRedSkin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/PowerPoint-icon.png" />
                        <ubcr:RibbonRadioButton Title="OfficeDarkRedSkin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/Access-icon.png" />
                        <ubcr:RibbonRadioButton Title="OfficeVioletSkin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/infoPath-icon.png" />
                        <ubcr:RibbonRadioButton Title="Office2010Skin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/Excel-icon.png" />
                        <ubcr:RibbonRadioButton Title="Office2007Skin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/Excel-icon.png" />
                        <ubcr:RibbonRadioButton Title="DarkSkin"
                                                Margin="0,10"
                                                Checked="RadioButton_Checked"
                                                Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Office2013icons/Excel-icon.png" />
                    </ubcr:GroupBox>
                </Grid>
            </ubcn:OutlookBar.InnerContent>
            <ubcn:OutlookBarItem Title="Mail" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/MailFile16.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Mail" />
                </ubcn:OutlookBarItem.InnerContent>
                <ubcn:OutlookBarItem.DropDownContent>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBlock HorizontalAlignment="Center"
                                   VerticalAlignment="Center"
                                   Text="Hello world!" />
                        <TextBlock Grid.Row="1"
                                   HorizontalAlignment="Center"
                                   VerticalAlignment="Center"
                                   Text="Hello world!" />
                    </Grid>
                </ubcn:OutlookBarItem.DropDownContent>
                <ubcn:OutlookBarItem.NavigationItems>
                    <ubcn:NavigationItem Height="60" Content="Inbox" />
                    <ubcn:NavigationItem Height="80" Content="Sent items" />
                </ubcn:OutlookBarItem.NavigationItems>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Calendar" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Calendar-Next.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <Calendar />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Contacts" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Users.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Contacts" />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Tasks" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Printer_48x48.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Tasks" />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Shortcuts1" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/home.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Shortcuts1" />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Shortcuts2" Image="pack://application:,,,/UBCon.RibbonDemo;component/images/folder32.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Shortcuts2" />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
        </ubcn:OutlookBar>
    </DockPanel>

    <ubcr:RibbonWindow.Footer>
        <Border Height="23"
                Background="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager},
                                                                               ResourceId=FooterBackground}}"
                TextBlock.Foreground="White">
            <Grid VerticalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="55" />
                    <ColumnDefinition Width="55" />
                    <ColumnDefinition Width="55" />
                    <ColumnDefinition Width="55" />
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="100" />
                </Grid.ColumnDefinitions>
                <TextBlock Margin="5, 0, 0, 0"
                           HorizontalAlignment="Left"
                           Text="Ready" />
                <TextBlock Grid.Column="1"
                           Margin="5, 0, 0, 0"
                           HorizontalAlignment="Left"
                           Text="Ln 294" />
                <TextBlock Grid.Column="2"
                           Margin="5, 0, 0, 0"
                           HorizontalAlignment="Left"
                           Text="Col 38" />
                <TextBlock Grid.Column="3"
                           Margin="5, 0, 0, 0"
                           HorizontalAlignment="Left"
                           Text="Ch 37" />
                <TextBlock Grid.Column="4"
                           Margin="5, 0, 0, 0"
                           HorizontalAlignment="Left"
                           Text="Ch 37" />
            </Grid>
        </Border>
    </ubcr:RibbonWindow.Footer>
</ubcr:RibbonWindow>
